package com.by.auto;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.UUID;

@ConfigurationProperties(prefix = "token")
public class TokenProperties {

    String secret = "abcdefg";// 生成token的密钥

    long validTime = 30 * 60 * 1000; //默认有效时间


    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }
}
